package org.ala.distributed_database_transaction;

import org.ala.distributed_database_transaction.commons.AbstractDataBaseTransactionFactory;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;


/**
 * 事务管理器工厂
 * 
 * @author 骆毅(ala)
 * @date 2024年2月20日
 */
@Component
@Lazy
public class Transaction3PCFactory extends AbstractDataBaseTransactionFactory<Transaction3PC> {

	
	@Override
	protected Transaction3PC buildTransaction() {
		Transaction3PC tx = new Transaction3PC(getDataSourceTransactionManager());
		return tx;
	}
	

}
